<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
 //remove cache
 response.setHeader("Pragma","No-cache");
 response.setHeader("Cache-Control","no-cache");
 response.setDateHeader("Expires", 0);
 String path = request.getContextPath();
%> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link id="uitheme" rel="stylesheet" type="text/css"  href="${basePath}/css/themes/default/easyui.css"  />
<link rel="stylesheet" type="text/css" href="${basePath}/css/themes/icon.css">
<link rel="stylesheet" type="text/css" href="${basePath}/css/ztree/zTreeStyle/zTreeStyle.css">
<link rel="stylesheet" type="text/css" href="${basePath}/css/index.css">
<link rel="stylesheet" type="text/css" href="${basePath}/css/base.css">
<link rel="stylesheet" type="text/css" href="${basePath}/css/main.css">
<script src="${basePath}/js/jquery.min.js" type="text/javascript"></script>
<script src="${basePath}/js/jquery.cookie.js" type="text/javascript"></script>
<script src="${basePath}/js/jquery.form.js" type="text/javascript"></script>
<script src="${basePath}/js/jquery.easyui.min.js" type="text/javascript"></script>
<script src="${basePath}/js/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="${basePath}/js/plugins/ztree/jquery.ztree.all.min.js" type="text/javascript"></script>
<script src="${basePath}/js/index.js" type="text/javascript"></script>


<link rel="stylesheet" type="text/css" href="${basePath}/js/plugins/kindeditor/themes/default/default.css" /> 
<link rel="stylesheet" type="text/css" href="${basePath}/js/plugins/kindeditor/plugins/code/prettify.css" />
<script  type="text/javascript" src="${basePath}/js/plugins/kindeditor/kindeditor-all.js"></script>
<script type="text/javascript" src="${basePath}/js/plugins/kindeditor/lang/zh-CN.js"></script>
<script  type="text/javascript" src="${basePath}/js/plugins/kindeditor/plugins/code/prettify.js"></script>

<script type="text/javascript">
var path='<%=path%>';
$(function(){
	//主题初始换
	var themeval=$.cookie("dhccThemeName");//获取cookie
	if(themeval!=null&&themeval!=undefined){
		var oldHref = $('#uitheme').attr('href');
	    var newHref = oldHref.substring(0,oldHref.indexOf('themes')) + 'themes/' + themeval + '/easyui.css';
	    $('#uitheme').attr('href', newHref);
	}
});
</script>
